package com.springframework.core.context;

import java.io.Serializable;

/**
 * bean的定义
 * @author youzhengjie
 */
public class BeanDefinition implements Serializable {

    private Class<?> type; //bean所属类
    private String scope; //单例还是多例

    public Class<?> getType() {
        return type;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "BeanDefinition{" +
                "type=" + type +
                ", scope='" + scope + '\'' +
                '}';
    }
}
